package com.tb.mapper;

import com.tb.pojo.Comments;
import com.tb.pojo.CommentsExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface CommentsMapper {
    long countByExample(CommentsExample example);

    int deleteByExample(CommentsExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Comments comments);

    int insertSelective(Comments record);
    /*************************************************************************************/
    /*根据商品ID查询评论*/
    List<Comments> selectCommentsByUserId(Map<String,Object> map);
    /*************************************************************************************/

    List<Comments> selectByExample(CommentsExample example);

    Comments selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Comments record, @Param("example") CommentsExample example);

    int updateByExample(@Param("record") Comments record, @Param("example") CommentsExample example);

    int updateByPrimaryKeySelective(Comments record);

    int updateByPrimaryKey(Comments record);
}